package Q326

/**
 * 3的幂
 * @author 23737
 * @date 2022.5.8
 */
class Main {

}

fun main(){

}

class Solution {
    fun isPowerOfThree(n: Int): Boolean {
        return n > 0 && 1162261467 % n == 0
    }
}
